<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='工序计划单')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/Production/processPlan.css}" rel="stylesheet" />
<!-- <link th:href="@{plugins/bootstrap/css/bootstrap-table-fixed-columns.css}" rel="stylesheet" /> -->
<body class="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="margin: 10px;">
					<div>
						<div class="page-heading">
													<div class="" style="margin-bottom: 3px;">
                    <div style="float: left;margin-right: 10px;">
                    <span class="searchRecord" style="">检索历史</span> </div>
                    <div style="float: left;margin-right: 10px;width: 8%;">
                  <select name="searchRecord" id="searchRecord" class="form-control" data-live-search="true" data-width="85px" onchange = "loadSearchRecord()">                
                  </select>
                  </div>
                  <i style="float: left;margin: 6px 4px 0px -4px;" class="fa fa-times" onclick = "deleteRecord()"></i>                            
                <div style="float:left">
                 <!--  <button type="button" class="btn btn-default query" id="oldQuery">
                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>查询</button>
                  <button type="button" class="btn btn-default resetting" id="resetting">重置</button>
                  <button type="button" class="btn btn-default" id="more">更多</button> -->                  
                  <button type="button" class="btn btn-default" id="addSearch">增加搜索组</button>&nbsp;
                  <button type="button" id="saveSearch" class="btn btn-default">保存检索</button>&nbsp;
                  <button type="button" id="resetSearch" class="btn btn-default">重置</button>&nbsp;
                  <button type="button" class="btn btn-default " id="changeColumn">自定义列</button>
				  <button type="button" class="btn btn-default " id="batchDispatching">批量派工</button> &nbsp;      
                  <button type="button" id="query" class="btn btn-default">搜索</button>                                     
                  </div>                  
                <div style="clear:both"></div>
              </div>
              <table class="table table-condensed table-form" id="bug-search">
                <tbody>
                    <tr id="searchbox1" class="">
                          <td class="w-110px"></td>
                            <td class="w-10px">
                              <span id="searchgroup1">
                                <strong>第一组</strong></span>
                             </td>
                            <td class="w-110px">
                              <select name="field1" id="field1" class="form-control" data-live-search="true" data-width="85px" onchange = "ifTime(1)">
                                 <option value="blank" title="blank" data-keys=" ">无</option>
                                </select>
                              <div class="chosen-container chosen-container-single chosen-compact chosen-with-search" style="width: 100%;" title="" id="field1_chosen"></div>
                            </td>
                            <td class="w-90px">
                              <select name="operator1" id="operator1" class="form-control">
                                <option value="=" title="=" data-keys=" ">等于</option>
								<option value="<>" title="!=" data-keys="! !">不等于</option>
								<option value=">" title=">" data-keys=" ">大于</option>
								<option value=">=" title=">=" data-keys=" ">大于等于</option>
								<option value="<" title="<" data-keys=" ">小于</option>
								<option value="<=" title="<=" data-keys=" ">小于等于</option>
                                <option value="like"  title="包含" data-keys="baohan bh">包含</option>
                                <option value="left like" title="左包含" data-keys="zuobaohan zbh">左包含</option>
                                <option value="right like" title="右包含" data-keys="youbaohan ybh">右包含</option>
                                </select>
                            </td>
                            <td class="w-td" id="valueBox1" style="overflow:visible">
                              <input type="text" name="value1" id="value1" value="" class="form-control searchInput" autocomplete="off">
                             </td>
                             <td class="col-md-5"></td>
                         
                          </tr>
                         <tr id="searchbox2" class="">
                             <td class="w-110px">
                              <select name="andOr1" id="andOr1" class="form-control">
                                <option value="and" selected="selected" title="并且" data-keys="bingqie bq">并且</option>
                                <option value="or" title="或者" data-keys="huozhe hz">或者</option></select>
                            </td>
                            <td class="w-10px">
                              <span id="searchgroup2">
                                <strong>第二组</strong></span>
                             </td>
                            <td class="w-110px" style="overflow: visible">
                              <select name="field2" id="field2" class="form-control" data-live-search="true" data-width="85px" onchange = "ifTime(2)">
                                 <option value="blank" title="blank" data-keys=" ">无</option>
                              </select>
                              <div class="chosen-container chosen-container-single chosen-compact chosen-with-search" style="width: 100%;" title="" id="field1_chosen"></div>
                            </td>
                            <td class="w-90px">
                              <select name="operator2" id="operator2" class="form-control">
                                <option value="=" title="=" data-keys=" ">等于</option>
								<option value="<>" title="!=" data-keys="! !">不等于</option>
								<option value=">" title=">" data-keys=" ">大于</option>
								<option value=">=" title=">=" data-keys=" ">大于等于</option>
								<option value="<" title="<" data-keys=" ">小于</option>
								<option value="<=" title="<=" data-keys=" ">小于等于</option>
                                <option value="like"  title="包含" data-keys="baohan bh">包含</option>
                                <option value="left like" title="左包含" data-keys="zuobaohan zbh">左包含</option>
                                <option value="right like" title="右包含" data-keys="youbaohan ybh">右包含</option></select>
                            </td>
                            <td class="w-td" id="valueBox2" style="overflow:visible">
                              <input type="text" name="value2" id="value2" value="" class="form-control searchInput" autocomplete="off">
                              </td>
                              <td class="col-md-5"></td>
                          </tr>
                         <tr id="searchbox3" class="">
                             <td class="w-110px">
                              <select name="andOr2" id="andOr2" class="form-control">
                                <option value="and" selected="selected" title="并且" data-keys="bingqie bq">并且</option>
                                <option value="or" title="或者" data-keys="huozhe hz">或者</option></select>
                            </td>
                            <td class="w-10px">
                              <span id="searchgroup3">
                                <strong>第三组</strong></span>
                              </td>
                            <td class="w-110px" style="overflow: visible">
                              <select name="field3" id="field3" class="form-control" data-live-search="true" data-width="85px" onchange = "ifTime(3)">
                              
                                <option value="blank" title="blank" data-keys=" ">无</option>
                                </select>
                              <div class="chosen-container chosen-container-single chosen-compact chosen-with-search" style="width: 100%;" title="" id="field1_chosen"></div>
                            </td>
                            <td class="w-90px">
                              <select name="operator3" id="operator3" class="form-control">
                                <option value="=" title="=" data-keys=" ">等于</option>
								<option value="<>" title="!=" data-keys="! !">不等于</option>
								<option value=">" title=">" data-keys=" ">大于</option>
								<option value=">=" title=">=" data-keys=" ">大于等于</option>
								<option value="<" title="<" data-keys=" ">小于</option>
								<option value="<=" title="<=" data-keys=" ">小于等于</option>
                                <option value="like"  title="包含" data-keys="baohan bh">包含</option>
                                <option value="left like" title="左包含" data-keys="zuobaohan zbh">左包含</option>
                                <option value="right like" title="右包含" data-keys="youbaohan ybh">右包含</option></select>
                            </td>
                            <td class="w-td" id="valueBox3" style="overflow:visible">
                              <input type="text" name="value3" id="value3" value="" class="form-control searchInput" autocomplete="off">
                            </td>
                              <td class="col-md-5"></td>
                          </tr>
                          <tr id="searchbox4" class="">
                             <td class="w-110px">
                              <select name="andOr3" id="andOr3" class="form-control">
                                <option value="and" selected="selected" title="并且" data-keys="bingqie bq">并且</option>
                                <option value="or" title="或者" data-keys="huozhe hz">或者</option></select>
                            </td>
                            <td class="w-10px">
                              <span id="searchgroup4">
                                <strong>第四组</strong></span>
                                </td>
                            <td class="w-110px" style="overflow: visible">
                              <select name="field4" id="field4" class="form-control" data-live-search="true" data-width="85px" onchange = "ifTime(4)">
                                 <option value="blank" title="blank" data-keys=" ">无</option>
                             </select>
                              <div class="chosen-container chosen-container-single chosen-compact chosen-with-search" style="width: 100%;" title="" id="field1_chosen"></div>
                            </td>
                            <td class="w-90px">
                              <select name="operator4" id="operator4" class="form-control">
                               <option value="=" title="=" data-keys=" ">等于</option>
								<option value="<>" title="!=" data-keys="! !">不等于</option>
								<option value=">" title=">" data-keys=" ">大于</option>
								<option value=">=" title=">=" data-keys=" ">大于等于</option>
								<option value="<" title="<" data-keys=" ">小于</option>
								<option value="<=" title="<=" data-keys=" ">小于等于</option>
                                <option value="like"  title="包含" data-keys="baohan bh">包含</option>
                                <option value="left like" title="左包含" data-keys="zuobaohan zbh">左包含</option>
                                <option value="right like" title="右包含" data-keys="youbaohan ybh">右包含</option></select>
                            </td>
                            <td class="w-td" id="valueBox4" style="overflow:visible">
                              <input type="text" name="value4" id="value4" value="" class="form-control searchInput" autocomplete="off">
                            </td>
                            <td class="col-md-5"></td>
                          </tr>
                          <tr id="searchbox5" class="">
                             <td class="w-110px">
                              <select name="andOr4" id="andOr4" class="form-control">
                                <option value="and" selected="selected" title="并且" data-keys="bingqie bq">并且</option>
                                <option value="or" title="或者" data-keys="huozhe hz">或者</option></select>
                            </td>
                            <td class="w-10px">
                              <span id="searchgroup5">
                                <strong>第五组</strong></span>
                             </td>
                            <td class="w-110px" style="overflow: visible">
                              <select name="field5" id="field5" class="form-control" data-live-search="true" data-width="85px" onchange = "ifTime(5)">
                                  <option value="blank" title="blank" data-keys=" ">无</option>
                              </select>
                              <div class="chosen-container chosen-container-single chosen-compact chosen-with-search" style="width: 100%;" title="" id="field1_chosen"></div>
                            </td>
                            <td class="w-90px">
                              <select name="operator5" id="operator5" class="form-control">
                               <option value="=" title="=" data-keys=" ">等于</option>
								<option value="<>" title="!=" data-keys="! !">不等于</option>
								<option value=">" title=">" data-keys=" ">大于</option>
								<option value=">=" title=">=" data-keys=" ">大于等于</option>
								<option value="<" title="<" data-keys=" ">小于</option>
								<option value="<=" title="<=" data-keys=" ">小于等于</option>
                                <option value="like"  title="包含" data-keys="baohan bh">包含</option>
                                <option value="left like" title="左包含" data-keys="zuobaohan zbh">左包含</option>
                                <option value="right like" title="右包含" data-keys="youbaohan ybh">右包含</option></select>
                            </td>
                            <td class="w-td" id="valueBox5" style="overflow:visible">
                              <input type="text" name="value5" id="value5" value="" class="form-control searchInput" autocomplete="off">
                            </td>
                            <td class="col-md-5"></td>
                          </tr>
                          <tr id="searchbox6" class="">
                             <td class="w-110px">
                              <select name="andOr5" id="andOr5" class="form-control">
                                <option value="and" selected="selected" title="并且" data-keys="bingqie bq">并且</option>
                                <option value="or" title="或者" data-keys="huozhe hz">或者</option></select>
                            </td>
                            <td class="w-10px">
                              <span id="searchgroup6">
                                <strong>第六组</strong></span>
                             </td>
                            <td class="w-110px" style="overflow: visible">
                              <select name="field6" id="field6" class="form-control" data-live-search="true" data-width="85px" onchange = "ifTime(6)">
                                  <option value="blank" title="blank" data-keys=" ">无</option>
                                </select>
                              <div class="chosen-container chosen-container-single chosen-compact chosen-with-search" style="width: 100%;" title="" id="field1_chosen"></div>
                            </td>
                            <td class="w-90px">
                              <select name="operator6" id="operator6" class="form-control">
                                <option value="=" title="=" data-keys=" ">等于</option>
								<option value="<>" title="!=" data-keys="! !">不等于</option>
								<option value=">" title=">" data-keys=" ">大于</option>
								<option value=">=" title=">=" data-keys=" ">大于等于</option>
								<option value="<" title="<" data-keys=" ">小于</option>
								<option value="<=" title="<=" data-keys=" ">小于等于</option>
                                <option value="like"  title="包含" data-keys="baohan bh">包含</option>
                                <option value="left like" title="左包含" data-keys="zuobaohan zbh">左包含</option>
                                <option value="right like" title="右包含" data-keys="youbaohan ybh">右包含</option></select>
                            </td>
                            <td class="w-td" id="valueBox6" style="overflow:visible">
                              <input type="text" name="value6" id="value6" value="" class="form-control searchInput" autocomplete="off">
                            </td>
                            <td class="col-md-5"></td>
                          </tr>
                  <tr>
                    <td colspan="6" class="text-center form-actions">
                      <input type="hidden" name="module" id="module" value="bug">
                      <input type="hidden" name="actionURL" id="actionURL" value="/zentao/bug-browse-2-0-bySearch-myQueryID.html">
                      <input type="hidden" name="groupItems" id="groupItems" value="3">
                      <!-- <button type="button" class="btn btn-default" id="addSearch">增加搜索组</button>&nbsp;
                      <button type="button" id="query" class="btn btn-default">搜索</button>&nbsp;
                       <button type="button" id="saveSearch" class="btn btn-default">保存</button>&nbsp;
                       <button type="button" id="resetSearch" class="btn btn-default">重置</button>&nbsp; -->
                      <!-- <button type="button" class="btn-expand-form btn btn-info pull-right">
                        <i class="icon icon-chevron-double-down"></i>
                      </button> -->
                      <input type="hidden" name="formType" id="formType" value="more"></td>
                  </tr>
                </tbody>
              </table>              
              	<!-- 检索历史命名模态框 start -->
              				<div class="modal fade " id="saveModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
								<div class="modal-dialog" style="width: 23%; height: 220px;">
									<div class="modal-content" style="width: auto;">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
											<h4 class="modal-title" id="titleModal">检索历史命名</h4>
										</div>
										<div class="modal-body" style="height: auto; padding: 10px;">
											<form id="checkForm" class="form-group">
												<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
													<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
														<tr>
															<td class="title"><span class="sub"><span class="requiredCss">*</span>检索名称保存为：</span></td>
															<td colspan=""><input type="text" id="recordName" name="recordName" class="clean_c form-control"></td>
														</tr>
													</table>
													<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="" style="margin-top: 5px;">														
														<tr>
															<td class="title" colspan="6"><span style="" class="requiredCss sub">注：带*为必填字段。</span></td>
														</tr>
													</table>
													<div style="width: 100%;position:relative;">
														<div style="text-align: center;margin-top: 15px;">
															<button type="button" class="btn btn-default" id="confirms" style="margin-right: 20px;">确定</button>
															<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
														</div>
													</div>
												</div>
											</form>
										</div>
									</div>
								</div>
							</div>	
					<!-- 检索历史命名模态框 end -->
							<!-- <div style=";top: 20px;">
								<div style="float:left">
									<span class="spanCss">销售单号：</span> 
									<input type="text" id="fOrderBillNo" name="fOrderBillNo" class="form-control clean_C" style="width: 100px; margin-right: 10px;" />
									<span class="spanCss">生产任务单：</span> 
									<input type="text" id="fBillNo" name="fBillNo" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off"/>  
									<span class="spanCss">产品代码：</span> 
									<input type="text" id="fNumber" name="fNumber" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off"/> 
									<span class="spanCss">产品名称：</span> 
									<input type="text" id="fName" name="fName" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off"/> 
									<span class="spanCss">规格型号：</span> 
									<input type="text" id="fModel" name="fModel" class="form-control clean_C" style="width: 120px; margin-right: 10px;" autocomplete="off" />
									
									<span class="spanCss">流转卡号：</span> 
									<input type="text" id="id" name="id" class="form-control clean_C" style="width: 100px; margin-right: 10px;" /> 
									<span class="spanCss"></span>
									<input type="text" id="endTime" name="endTime" class="date form-control" style="margin-right: 10px;margin-left:5px;width: 100px;"/> 
								</div>
								<div style="float:left">
									<button id="query" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
									<button type="button" class="btn btn-default " id="more">更多</button>
									<button type="button" class="btn btn-default " id="resetting">重置</button>
									<button type="button" class="btn btn-default " id="batchDispatching">批量派工</button>
								</div>
								<div style="clear:both"></div>
								<div class="" id="extend" style="margin-top: 5px;display: none;">
									<div style="float: left;">
										<span class="spanCss">工序名称：</span> 
										<input type="text" id="fOperName" name="fOperName" class="form-control clean_C" style="width: 100px; margin-right: 10px;" autocomplete="off" />
									</div>
									<div style="float:left">
										<span class="spanCss">工作中心：</span>
										<select name="workshopID" id="workshopID" class="selectpicker clean_C " data-live-search="true" data-width="110px">
										</select>
									</div>
									<div style="float:left;display: none;" id="showStatus">
										<span class="spanCss" style="margin-left: 10px;">状态：</span>
										<select name="fStatus" id="fStatus" class="selectpicker clean_C " data-live-search="true" data-width="80px">
											<option value="" selected="selected">全部</option>
											<option value="5">待下达</option>
											<option value="1">已下达</option>
											<option value="3">已关闭</option>
										</select>
									</div>
									<div style="float:left">
										<span class="spanCss" style="margin-left: 10px;">任务单类型：</span>
										<select name="taskStyle" id="taskStyle" class="selectpicker clean_C " data-live-search="true" data-width="110px">
											<option value="">全部</option>
											<option value="1">装配任务</option>
											<option value="2">生产任务</option>
										</select>
									</div>
									<div style="float:left">
										<span class="spanCss" style="margin-left: 10px;">有无派工数：</span>
										<select name="fDisPatchFlag" id="fDisPatchFlag" class="selectpicker clean_C " data-live-search="true" data-width="60px">
											<option value="">全部</option>
											<option value="1">有</option>
											<option value="2">无</option>
										</select>
									</div>
									<div style="float: left;">
										<span class="spanCss" style="margin-left: 10px;">制单日期</span>
										<input type="text" id="startTime" name="startTime" class="date form-control clean_C" style="margin-left:5px;width: 85px;" autocomplete="off"/>
										<span>-</span>
										<input type="text" id="endTime" name="endTime" class="date form-control clean_C" style="margin-right: 10px;width: 85px;" autocomplete="off"/>
										<span class="spanCss" style="margin-left: 10px;">制单人</span>
										<input type="text" id="fBillerName" name="fBillerName" class="date form-control clean_C" style="margin-left:5px;width: 85px;" autocomplete="off"/>
										<span class="spanCss" style="margin-left: 10px;">预装配日期</span>
										<input type="text" id="fAuxDate" name="fAuxDate" class="date form-control clean_C" style="margin-left:5px;width: 85px;" autocomplete="off"/>
									</div>
									<div style="clear:both"></div>
								</div>
							</div> -->
							
							<!-- 工序计划表 start -->
							<div style="margin-top: -15px;">
								<!-- <table id="planTable" class="table dataTable table-hover"   data-toggle="table" data-classes="table table-hover" data-show-columns="true" data-toolbar="#toolbar"  data-height="500" > -->
								<table id="planTable" class="table dataTable table-hover"   data-toggle="table" data-classes="table table-hover" data-toolbar="#toolbar"  data-height="500" >
								</table>
							</div>
							<!-- 工序计划表 end -->
						</div>
						
						<!-- 派工模态框 start -->
						<div class="modal fade " id="dispatchingModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 800px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="titleModal">派工</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<form id="dispatchingForm" class="form-group">
											<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
												<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
													<tr>
														<td class="title"><span class="sub">生产任务单：</span></td>
														<td colspan="2">
															<input type="text" id="dispatchingfBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="dispatchingfIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly">
														</td>
														<td class="title"><span class="sub">排程计划时间：</span></td>
														<td colspan="2"><input type="text" id="dispatchingfPlanDate" name="fPlanDate" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">产品名称：</span></td>
														<td colspan="2"><input type="text" id="dispatchingfName" name="fName" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">产品代码：</span></td>
														<td colspan="2"><input type="text" id="dispatchingfNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
													    <td class="title"><span class="sub">规格型号：</span></td>
														<td colspan="2"><input type="text" id="dispatchingfModel" name="fModel" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">工序号：</span></td>
														<td><input type="text" id="dispatchingfOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">工序名称：</span></td>
														<td><input type="text" id="dispatchingfOperName" name="fOper" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">工作中心：</span></td>
														<td>
															<input type="text" id="dispatchingfDepName" name="fDepName" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="dispatchingfDepid" name="fDepid" class="clean_c form-control" readonly="readonly">
														</td>
													</tr>
													<tr>
														<td class="title"><span class="sub">设备组：</span></td>
														<td>
															<input type="text" id="dispatchingfMacGroupName" name="fMacGroupName" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="dispatchingfMacGroupId" name="fMacGroupId" class="clean_c form-control" readonly="readonly">
														</td>
														<td class="title"><span class="sub">是否外协：</span></td>
														<td><input type="text" id="dispatchingfIsOut" name="fIsOut" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">剩余可派工：</span></td>
														<td><input type="text" id="dispatchingnoDispatchQty" name="noDispatchQty" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">加工说明：</span></td>
														<td colspan="5"><input type="text" id="dispatchingfNote" name="fNote" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">定额：</span></td>
														<td colspan="4"><input type="text" id="dispatchingfPieceRate" name="fPieceRate" class="clean_c form-control" readonly="readonly" ></td>
														<td ><!-- <button type="button" class="btn btn-default" id="modifyding" style="width:120px;" >修改定额</button> --></td>
													</tr>
													<tr>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>派工数量：</span></td>
														<td><input type="text" id="dispatchingfTargetQty" name="fTargetQty" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"></td>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>开工时间：</span></td>
														<td><input type="text" id="dispatchingfStartTime" name="fStartTime" class="clean_c form-control bj_color noPass" autocomplete="off"></td>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>完工时间：</span></td>
														<td><input type="text" id="dispatchingfEndTime" name="fEndTime" class="clean_c form-control bj_color noPass" autocomplete="off"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>设备：</span></td>
														<!-- 下拉框默认向上弹出，class里加dropup，标签里加data-dropup-auto="false" -->
														<td colspan="2"><select name="fMacId" id="dispatchingfMacId" class="selectpicker dropup clean_c" data-live-search="true" data-width="100%" data-style="btn-success" data-dropup-auto="false"></select></td>
														<td class="title" colspan="3">
															<span class="sub"><span class="requiredCss">*</span>定额折扣：</span>
															<input type="text" id="fDiscountPieceRate" name="fDiscountPieceRate" class="clean_c form-control bj_color" style="width: 135px !important;" autocomplete="off"  onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
															<span class="">%</span>
															<span class="sub">是否工序入库：</span>
															<label style="line-height: 26px;margin-bottom: 0;">
																<input name="fIsOperInStock" type="checkbox" value="1" id="dispatchingfIsOperInStock" style="width: auto !important;vertical-align: middle;margin: -2px 2px 0 0;">是
															</label>
														</td>
													</tr>
													<tr style="display: none;" id="showCheckBox">
														<td class="title"><span class="sub">是否领料：</span></td>
														<td style="">
															<label style="line-height: 26px;margin-bottom: 0;">
																<input name="fIsOutStock" type="checkbox" value="1" id="dispatchingfIsOutStock" style="width: auto !important;vertical-align: middle;margin: -2px 2px 0 0;">是
															</label>
														</td>
														<td class="title"><span class="sub">齐套数：</span></td>
														<td><input type="text" id="qitaos"  class="clean_c form-control bj_color" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">备注：</span></td>
														<td colspan="5"><input type="text" id="dispatchingfIcmoNote" name="fIcmoNote" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">摘要：</span></td>
														<td colspan="5"><input type="text" id="dispatchingfExplanation" name="fExplanation" class="clean_c form-control" readonly="readonly"></td>
													</tr>
												</table>
												<div style="width: 100%;">
													<div>
														<span style="padding-left: 17px;" class="requiredCss">注：带*为必填字段。</span>
													</div>
													<div style="text-align: center;margin-top: 10px;">
														<button type="button" class="btn btn-default" id="confirm_pg" style="margin-right: 20px;">确定</button>
														<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 派工模态框 end -->
						<!--  定额数量修改模态框 start -->
						<div class="modal fade " id="dingeninputCardModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 80%; height: 220px;">
								<div class="modal-content" style="width: auto;text-align:center;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="titleModal">定额数量修改</h4>
									</div>
									<div class="modal-body" style="padding: 10px;">
											<form id="indingForm" class="form-group">
											<div style="margin-right: 15px;" id="">
												<div style="margin-top: 5px;">
														<table id="daodingTable" class="table dataTable table-hover">
														</table>
													</div>
												<div style="width: 100%;position:relative;">
													<div style="text-align: center;margin-top: 12px;">
														<button type="button" class="btn btn-default" id="confirmmodify" style="margin-right: 20px;">确定修改</button>
														<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
													</div>
												</div>
											</div>
										</form>
										</div>
									</div>
								</div>
						</div>
						<!-- 定额数量修改模态框 end-->  
						
						<!-- 批量派工模态框 start -->
						<div class="modal fade " id="batchDispatchingModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 800px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="">批量派工</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<form id="batchDispatchingForm" class="form-group">
											<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
												<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
													<tr>
														<td class="title"><span class="sub">工序名称：</span></td>
														<td style="width: 650px;"><input type="text" id="batchDispatchingfOperName" name="fOperName" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">工作中心：</span></td>
														<td>
															<input type="text" id="batchDispatchingfDepName" name="fDepName" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="batchDispatchingfDepid" name="fDepid" class="clean_c form-control" readonly="readonly">
														</td>
													</tr>
													<tr>
														<td class="title"><span class="sub">设备组：</span></td>
														<td>
															<input type="text" id="batchDispatchingfMacGroupName" name="fMacGroupName" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="batchDispatchingfMacGroupId" name="fMacGroupId" class="clean_c form-control" readonly="readonly">
														</td>
													</tr>
													<tr>
														<td class="title"><span class="sub">加工说明：</span></td>
														<td colspan="3"><input type="text" id="batchDispatchingfNote" name="fNote" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>定额折扣：</span></td>
														<td style="">
															<input type="text" id="batchDispatchingfDiscountPieceRate" name="fDiscountPieceRate" class="clean_c form-control bj_color" style="width: 97% !important;" autocomplete="off"  onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
															<span class="">%</span>
														</td>
													</tr>
													<tr>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>开工时间：</span></td>
														<td><input type="text" id="batchDispatchingfStartTime" name="fStartTime" class="clean_c form-control bj_color noPass" autocomplete="off"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>完工时间：</span></td>
														<td><input type="text" id="batchDispatchingfEndTime" name="fEndTime" class="clean_c form-control bj_color noPass" autocomplete="off"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub"><span class="requiredCss">*</span>设备：</span></td>
														<!-- 下拉框默认向上弹出，class里加dropup，标签里加data-dropup-auto="false" -->
														<td colspan=""><select name="fMacId" id="batchDispatchingfMacId" class="selectpicker dropup clean_c" data-live-search="true" data-width="100%" data-style="btn-success" data-dropup-auto="false"></select></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">是否领料：</span></td>
														<td>
															<label style="line-height: 26px;margin-bottom: 0;">
																<input name="fIsOutStock" type="checkbox" value="1" id="batchDispatchingfIsOutStock" style="width: auto !important;vertical-align: middle;margin: -2px 2px 0 0;">是
															</label>
														</td>
													</tr>
													<tr>
														<td class="title"><span class="sub">是否工序入库：</span></td>
														<td>
															<label style="line-height: 26px;margin-bottom: 0;">
																<input name="fIsOperInStock" type="checkbox" value="1" id="batchDispatchingfIsOperInStock" style="width: auto !important;vertical-align: middle;margin: -2px 2px 0 0;">是
															</label>
														</td>
													</tr>
												</table>
												<div style="width: 100%;">
													<div>
														<span style="padding-left: 17px;" class="requiredCss">注：带*为必填字段。</span>
													</div>
													<div style="text-align: center;margin-top: 10px;">
														<button type="button" class="btn btn-default" id="confirm_plpg" style="margin-right: 20px;">确定</button>
														<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 批量派工模态框 end -->
						
						<!-- 修改设备模态框 start -->
						<div class="modal fade " id="modifyModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 800px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="titleModal">派工设备修改</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<div style="margin-bottom: 5px;">
											<div style="float:left">
												<span class="spanCss">派工单号：</span> 
												<input type="text" id="modifyfCode" name="fCode" class="form-control clean-M" style="width: 150px; margin-right: 10px;" /> 
											</div>
											<div style="float:left">
												<span class="spanCss">设备名称：</span>
												<select name="modifyDdevice" id="modifyDdevice" class="selectpicker clean_M " data-live-search="true" data-width="auto">
												</select>
											</div>
											<div style="float:left">
												<button id="query_modify" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
												<button type="button" class="btn btn-default " id="resetting_modify">重置</button>
											</div>
											<div style="clear:both"></div>
										</div>
										<div style="">
											<table id="piesTable" class="table dataTable table-hover tableList" style="">
											</table>
										</div>
										<div>
											<span class="requiredCss">注：选择设备即可保存！</span>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- 修改设备模态框 end -->
						
						<!-- 委外转出模态框 start -->
						<div class="modal fade " id="inOutModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 710px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="myModalLabel">委外转出</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<form id="inOutForm" class="form-group">
											<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table" style="margin: 5px 15px;">
												<tr>
													<td class="titleTD"><span>工序号：</span></td>
													<td class="contentTD">
														<input type="text" id="wffOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly" />
														<input type="hidden" id="wffIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly" />
													</td>
													<td class="titleTD"><span>工序名称：</span></td>
													<td class="contentTD">
														<input type="text" id="wffOperName" name="fOperName" class="clean_c form-control" readonly="readonly" />
													</td>
												</tr>
												<tr>
													<td><span>产品代码：</span></td>
													<td>
														<input type="text" id="wffNumber" name="fNumber" class="clean_c form-control" readonly="readonly" />
													</td>
													<td><span>产品名称：</span></td>
													<td>
														<input type="text" id="wffName" name="fName" class="clean_c form-control" readonly="readonly"/>
													</td>
												</tr>
												<tr>
													<td><span>规格型号：</span></td>
													<td colspan="3">
														<input type="text" id="wffModel" name="fModel" class="clean_c form-control" readonly="readonly" />
													</td>
												</tr>
												<tr id="">
													<td><span>可转出数：</span></td>
													<td>
														<input type="text" id="wfnoDispatchQty" name="noDispatchQty" class="clean_c form-control" readonly="readonly" />
													</td>
													<td><span class="requiredCss">*</span><span>委外数量：</span></td>
													<td>
														<input type="text" id="wffQty" name="fQty" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
													</td>
												</tr>
												<tr>
													<td><span id="companyID">委外单位ID：</span></td>
													<td>
														<input type="text" id="wffSupplierID" name="fSupplierID" class="clean_c form-control" readonly="readonly"/>
													</td>
													<td><span class="requiredCss">*</span><span id="companyName">委外单位：</span></td>
													<td>
														<input type="text" id="wffSupplierName" name="fSupplierName" class="clean_c form-control bj_color" autocomplete="off"/>
													</td>
												</tr>
												<tr id="outDate">
													<td><span>单价：</span></td>
													<td>
														<input type="text" id="wfprice" name="price" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
													</td>
													<td><span class="requiredCss">*</span><span>交货日期：</span></td>
													<td>
														<input type="text" id="wffFetchDate" name="fFetchDate" class="clean_c form-control bj_color noPass" autocomplete="off"/>
													</td>
												</tr>
												<tr id="outPerson">
													<td><span class="requiredCss">*</span><span>转出人ID：</span></td>
													<td>
														<input type="text" id="wfempCardNoOut" name="fWorker" class="clean_c form-control bj_color" autocomplete="off"/>
													</td>
													<td><span>转出人：</span></td>
													<td>
														<input type="text" id="wfturnOutP" name="turnOutP" class="clean_c form-control" readonly="readonly"/>
													</td>
												</tr>
												<tr style="display: none;" id="showWFCheckBox">
													<td class="title"><span class="sub">是否领料：</span></td>
													<td style="">
														<label style="line-height: 26px;margin-bottom: 0;">
															<input name="fIsOutStock" type="checkbox" value="1" id="wffIsOutStock" style="width: auto !important;vertical-align: middle;margin: -2px 2px 0 0;">是
														</label>
													</td>
												</tr>
												<tr>
													<td colspan="4" style="text-align: left;">
														<span style="color: red;padding-left: 25px;word-wrap:break-word;" id="content">注：带*为必填字段。选委外单位后，委外单位ID里才有数据</span>
													</td>
												</tr>
											</table>
											<div style="text-align: center;">
												<button type="button" class="btn btn-default right" id="confirm_out" style="margin-right: 20px;">确定</button>
												<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 委外转出模态框 end -->
						
						
						<!-- 接收模态框 start -->
						<div class="modal fade " id="receiveModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 900px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="titleModal">接收</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<form id="receiveForm" class="form-group">
											<div style="display: inline-block;overflow: hidden;margin:0 15px;" id="">
												<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content receiveTable" id="">
													<tr>
														<td class="title"><span class="sub">生产任务单：</span></td>
														<td colspan="">
															<input type="text" id="receivefBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="receivefIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly">
														</td>
														<td class="title"><span class="sub">产品代码：</span></td>
														<td colspan=""><input type="text" id="receivefNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">产品名称：</span></td>
														<td colspan=""><input type="text" id="receivefName" name="fName" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">规格型号：</span></td>
														<td colspan="5"><input type="text" id="receivefModel" name="fModel" class="clean_c form-control" readonly="readonly" style="width: 720px !important;"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">转出工序号：</span></td>
														<td colspan=""><input type="text" id="receivefSourceOperSN" name="fSourceOperSN" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">转出工序：</span></td>
														<td colspan=""><input type="text" id="receivefSourceOper" name="fSourceOper" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">转出车间：</span></td>
														<td colspan=""><input type="text" id="receivefSourceCenter" name="fSourceCenter" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">工序号：</span></td>
														<td colspan=""><input type="text" id="receivefTargetOperSN" name="fTargetOperSN" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">工序：</span></td>
														<td colspan=""><input type="text" id="receivefTargetOper" name="fTargetOper" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">生产车间：</span></td>
														<td colspan=""><input type="text" id="receivefTargetCenter" name="fTargetCenter" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title" colspan="6">
															<div style="float: left;">
																<span class="sub num">可接收数：</span>
																<input type="text" id="receivekQty" name="kQty" class="clean_c form-control bottomInput" readonly="readonly">
															</div>
															<div style="float: left;margin-left: 100px;">
																<span class="sub num"><span class="requiredCss">*</span>接收前实际数量：</span>	
																<input type="text" id="receivefActualQty" name="fActualQty" class="clean_c form-control bj_color bottomInput" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
															</div>
															<div style="float: right;">
																<span class="sub num"><span class="requiredCss">*</span>接收数量：</span>
																<input type="text" id="receivelQty" name="lQty" class="clean_c form-control bj_color bottomInput" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
															</div>
														</td>
													</tr>
												</table>
												<div style="width: 100%;">
													<div>
														<span style="padding-left: 5px;" class="requiredCss">注：带*为必填字段。</span>
													</div>
													<div style="text-align: center;margin-top: 10px;">
														<button type="button" class="btn btn-default" id="confirm_re" style="margin-right: 20px;">确定</button>
														<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 接收模态框 end -->
						
						<!-- 接收人模态框 start -->
						<div class="modal fade " id="receiverModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 560px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="myModal">接收人</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<div style="text-align: center;">
											<div>
												<span style="" class="modalSpan">接收人卡号：</span>
												<input type="text" id="receivefWorker" name="fWorker" class="clean-c form-control bj_color resetting modalInput" autocomplete="off" />
											</div>
											<div style="margin: 10px;">
												<span class="modalSpan">接收人：</span>
												<input type="text" id="fWorkerName" name="fWorkerName" class="clean-c form-control resetting modalInput" readonly="readonly" />
											</div>
											<div style="margin-top: 10px;">
												<button type="button" id="confirm_receive" class="btn btn-default right">确定</button>
												<button type="button" id="back_receive" class="btn btn-default" data-dismiss="modal">返回</button>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- 接收人模态框 end -->
						
						<!-- 打印模态框 start -->
						<div class="modal fade " id="printModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 90%;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="myModal">派工详情</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<div style="margin-bottom: 5px;">
											<!-- <div style="float:left">
												<span class="spanCss">员工号：</span> 
												<input type="text" id="fNumber" name="fNumber" class="form-control clean_C" style="width: 150px; margin-right: 10px;" /> 
												<span class="spanCss">员工姓名：</span> 
												<input type="text" id="fName" name="fName" class="form-control clean_C" style="width: 150px; margin-right: 10px;" /> 
											</div>
											<div style="float:left">
												<button id="query" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
												<button type="button" class="btn btn-default " id="resetting">重置</button>
											</div> -->
											<div style="float:left;">
												<button id="printNullPies" class="btn btn-default " type="button" style="margin-left: 10px;">打印空派工单</button>
											</div>
											<div style="clear:both"></div>
										</div>
										<div>
											<table id="printTable" class="table dataTable table-hover">
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- 打印模态框 end -->
						<!--  改制数量模态框 start -->
						<div class="modal fade " id="gainumbermodal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
						<div class="modal-dialog" style="width: 20%; height: 320px;">
							<div class="modal-content" style="width: auto;text-align:center;">
								<div class="modal-header">
									<h4 class="modal-title" id="titleModal" style="text-align: left;">改制</h4>
								</div>
								<div class="modal-body" style="padding: 10px;">
										<form id="inForm" class="form-group">
											<div class="row" style="height:100px;">
													<div class="col-sm-6 col-md-6 divClassLeft div_bg" style="width:100%;">
													  <div style="height:30px;">
													    <span style="line-height: 26px;">改制数量：</span>
														<input id="gainumber" type="text" class="form-control clean_c" style="width: 200px;margin-right: 15px;"/>
													  </div>
													<div style="width: 100%;">
														<div style="text-align: center;margin-top: 29px;">
															<button type="button" class="btn btn-default" id="gainumberconfirm" >确定</button>
															<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
														</div>
													</div>
										</div>
										</div>
									</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 改制数量模态框 end       -->  
						<!--  改制模态框 start -->
						<div class="modal fade " id="inputCardModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
						<div class="modal-dialog" style="width: 80%; height: 320px;">
							<div class="modal-content" style="width: auto;text-align:center;">
								<div class="modal-header">
									<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
									<h4 class="modal-title" id="titleModal" style="text-align: left;">改制</h4>
								</div>
								<div class="modal-body" style="padding: 10px;">
										<form id="inForm" class="form-group">
											<div class="row" >
													<div class="col-sm-6 col-md-6 divClassLeft div_bg" style="width:70%;">
													<!-- <div class="col-sm-12 col-md-12 "> -->
														<div class="col-sm-12 col-md-12" style="margin: 0 0 5px 0;padding: 0;">
														  <div style="height:30px;float:left;">
														    <span style="float: left;line-height: 26px;">任务单号：</span>
															<input id="fbillno" type="text" class="form-control clean_c" style="float: left;width: 200px;margin-right: 15px;"/>
															<span style="float: left;line-height: 26px;">产品代码：</span>
															<input id="fNumber" type="text" class="form-control clean_c" style="float: left;width: 200px;margin-right: 15px;"/>
														  </div>
														  <div style="height:30px;float:left;">
															<span style="float: left;line-height: 26px;">产品名称：</span>
															<input id="fName" type="text" class="form-control clean_c" style="float: left;width: 200px;margin-right: 15px;"/>
															<span style="float: left;line-height: 26px;">规格型号：</span>
															<input id="fModel" type="text" class="form-control clean_c" style="float: left;width: 200px;margin-right: 15px;"/>
														   </div>	
															<button type="button" class="btn btn-default " id="cx" style="margin-right: 5px;">查询</button>
															<button type="button" class="btn btn-default " id="cz">重置</button>
														</div>
														<div>
															<!-- 产品列表 -->
															<table id="gaiTable" class="table dataTable table-hover"></table>
														</div>
													</div>
													<div class="col-sm-6 col-md-6 divClassRight div_bg" style="width:30%;">
														<div class="col-sm-12 col-md-12" style="margin: 0 0 5px 0;padding: 0;">
														  <div style="height:60px;float:left;width:100%;">
															<input id="fnotess" type="text" class="form-control clean_c" style="float: left;width:100%;height:60px;margin-right: 15px;" placeholder="点击工序,显示加工说明"/>
														  </div>
														</div>
														<div id="ryShow">
															<div>
																<!-- 工序列表 -->
																<table id="xuTable" class="table dataTable table-hover"></table>
															</div>
														</div>
													</div>
													<div style="width: 100%;">
														<div style="text-align: center;margin-top: 12px;">
														   <span style="float: left;color: red;">*双击选中行 </span>
															<button type="button" class="btn btn-default" id="gaiconfirm" style="margin-right: 20px;position: absolute;bottom: 5px;left: 45%;">确定</button>
															<button type="button" class="btn btn-default" id="gaicancel" data-dismiss="modal" style="position: absolute;bottom: 5px;left: 50%;">取消</button>
														</div>
													</div>
										</div>
									</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 改制模态框 end       --> 
						<!-- 调用showModal里的queryModal，查询行 -->
						<div th:include="Production/showModal :: queryModal" />
						<div th:include="Production/customColumnModal :: customColumnModal" /></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<span id="value" style="display: none;">5</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<!-- bootstrap-table行过长专用JS -->
	<!-- <script th:src="@{plugins/bootstrap/js/bootstrap-table-1.9.0-1.js}"></script>
	<script th:src="@{plugins/bootstrap/js/bootstrap-table-zh-CN.js}"></script> -->
	<!-- <script th:src="@{plugins/bootstrap/js/bootstrap-table-fixed-columns.js}"></script> -->
	<div th:include="base :: bootstrapTable-eidt" />
	<div th:include="base :: ztree" />
	<div th:include="base :: others" />
	<script th:src="@{js/Production/processPlan.js}"></script>
	<script th:src="@{js/Production/showModal.js}"></script>
	<script th:src="@{js/TaiZhang/processCommon.js}"></script>
	<script th:src="@{js/TaiZhang/newtZCommon.js}"></script>
</body>
</html>
